package edu.zju.gis.dldsj.dao;

import edu.zju.gis.dldsj.entity.WfInstance;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface WfInstanceMapper {
    int deleteByPrimaryKey(@Param("dagId") String dagId, @Param("executionDate") Date executionDate, @Param("taskId") String taskId);

    int insert(WfInstance record);

    int insertSelective(WfInstance record);

    WfInstance selectByPrimaryKey(@Param("dagId") String dagId, @Param("executionDate") Date executionDate, @Param("taskId") String taskId);

    int updateByPrimaryKeySelective(WfInstance record);

    int updateByPrimaryKey(WfInstance record);

    List<WfInstance> selectByDagAndTime(@Param("dagId") String dagId, @Param("executionDate") Date executionDate);

    int deleteByDagRun(@Param("dagId") String dagId, @Param("executionDate") Date executionDate);

}